package com.erp.bean;

import java.sql.Timestamp;

/**
 * @author mtf
 * 订单实体类
 */
public class Order {

    /**
     * 订单编号
     */
    private String oid;

    /**
     * 订单状态
     */
    private int sid;

    public Order(String oid, int sid, int eid, int fid, Timestamp buytime, int gid, int count) {
        this.oid = oid;
        this.sid = sid;
        this.eid = eid;
        this.fid = fid;
        this.buytime = buytime;
        this.gid = gid;
        this.count = count;
    }

    /**
     * 员工编号
     */
    private int eid;

    /**
     * 报表编号
     */
    private int fid;

    /**
     * 下单时间
     */
    private Timestamp buytime;

    /**
     * 商品编号
     */
    private int gid;

    /**
     * 数量
     */
    private int count;

    @Override
    public String toString() {
        return "Order{" +
                "oid=" + oid +
                ", sid=" + sid +
                ", eid=" + eid +
                ", buytime=" + buytime +
                ", gid=" + gid +
                ", count=" + count +
                '}';
    }

    public Order() {
    }

    public Order(String oid, int sid, int eid, Timestamp buytime, int gid, int count) {
        this.oid = oid;
        this.sid = sid;
        this.eid = eid;
        this.buytime = buytime;
        this.gid = gid;
        this.count = count;
    }

    public int getFid() {
        return fid;
    }

    public void setFid(int fid) {
        this.fid = fid;
    }

    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public int getEid() {
        return eid;
    }

    public void setEid(int eid) {
        this.eid = eid;
    }

    public Timestamp getBuytime() {
        return buytime;
    }

    public void setBuytime(Timestamp buytime) {
        this.buytime = buytime;
    }

    public int getGid() {
        return gid;
    }

    public void setGid(int gid) {
        this.gid = gid;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}
